#!/bin/sh
set -e

if [ "$1" = "remove" ] ; then
  echo Stopping and disabling systemd service
  # Package removal, not upgrade
  systemctl --no-reload disable inspeqtor || :
fi
systemctl stop inspeqtor || :
